package com.ruyiadmin.springboot.entity_data_model.entity_model.business_model.module_management;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.ruyiadmin.springboot.common_infrastructure.models.base_entity_model.RuYiAdminBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 模块与用户关系模型
 * </p>
 *
 * @author RuYiAdmin
 * @since 2022-07-12
 */
@Data
@TableName("biz_user_module")
@ApiModel(value = "BizUserModule对象", description = "模块与用户关系表")
@NoArgsConstructor
@AllArgsConstructor
public class BizUserModule extends RuYiAdminBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户编号")
    @TableField("USER_ID")
    @NotNull
    private String userId;

    @ApiModelProperty("模块编号")
    @TableField("MODULE_ID")
    @NotNull
    private String moduleId;

    @ApiModelProperty("用户所在模块登录账号")
    @TableField("USER_MODULE_LOGON_NAME")
    @NotNull
    @Length(max = 128)
    private String userModuleLogonName;

    @ApiModelProperty("用户所在模块登录密码")
    @TableField("USER_MODULE_PASSWORD")
    @NotNull
    @Length(max = 512)
    private String userModulePassword;

}
